package com.hmall.api.pay.fallback;

import com.hmall.api.pay.PayClient;
import com.hmall.api.pay.dto.PayOrderDTO;
import org.springframework.cloud.openfeign.FallbackFactory;
public class PayClientFallbackFactory implements FallbackFactory<PayClient> {
    @Override
    public PayClient create(Throwable cause) {
        return new PayClient() {

            @Override
            public PayOrderDTO queryPayOrderByBizOrderNo(Long id) {
                return null;
            }

            @Override
            public void updatePayOrder(Long orderId) {

            }

        };
    }
}
